
package cz.czu.pef.DataModelling.service.impl;

import java.util.logging.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cz.czu.pef.DataModelling.dao.*;
import cz.czu.pef.DataModelling.domainObjects.Company;
import cz.czu.pef.DataModelling.entityObjects.CompanyEntityImpl;
import cz.czu.pef.DataModelling.service.api.*;

/**
 * Implements all operations for given Entity.
 * This implementation should be used exclusively for accessing any DAO operations.
 * 
 * @author Rostislav Stříbrný
 *
 */
@Service(value = "companyService")
public class CompanyServiceImpl extends AbstractWrapperServiceImpl<Company, CompanyEntityImpl> implements CompanyService
{

  Logger logger = Logger.getLogger(CompanyServiceImpl.class.getName());

  @Autowired
  CompanyDao companyDao;

  @Override
  public Dao<CompanyEntityImpl> getDao()
  {
    return companyDao;
  }
}
